@extends('family::layout')

@section('title', __('Home'))

@section('content')
    <div class="row">
        @if(!empty($children))
            @foreach($children as $child)
                <div class="col-lg-6 m-b-3">
                    <div class="box box-widget widget-user-2">
                        <!-- Add the bg color to the header using any of the bg-* classes -->
                        <div class="widget-user-header bg-yellow">
                            <div class="widget-user-image">
                                <!--<img class="img-circle" src="dist/img/img5.jpg" alt="User Avatar">-->
                                <img src="{{ asset('cetc/img/img1.jpg') }}" class="img-circle img-responsive" alt="User Image">
                            </div>
                            <!-- /.widget-user-image -->
                            <h3 class="widget-user-username">{{$child->name}}</h3>
                            <h5 class="widget-user-desc">学校：{{$child->agency->name}}</h5>
                            <h5 class="widget-user-desc">老师电话：{{ $child->user->phone }}</h5>
                        </div>
                        <div class="box-footer no-padding">
                            <ul class="nav nav-stacked">
                                <li><a href="{{ route("family.assessment.analysis", ['child_id' => $child->id]) }}">评测统计 <span class="pull-right badge bg-blue">&gt;</span></a></li>
                                <li><a href="{{ route("family.assessment.index", ['child_id' => $child->id]) }}">评测记录 <span class="pull-right badge bg-aqua">&gt;</span></a></li>
                                <li><a href="{{ route("family.training.index", ['child_id' => $child->id, 'grade_id'=>1]) }}">基础版 <span class="pull-right badge bg-green">&gt;</span></a></li>
                                <li><a href="{{ route("family.training.index", ['child_id' => $child->id, 'grade_id'=>2]) }}">进阶版 <span class="pull-right badge bg-red">&gt;</span></a></li>
                                <li><a href="{{ route("family.training.index", ['child_id' => $child->id, 'grade_id'=>3]) }}">高阶版 <span class="pull-right badge bg-blue">&gt;</span></a></li>
                                {{--<li><a href="{{ route("family.analysis.issuccess", ['child_id' => $child->id]) }}">干预成功率 <span class="pull-right badge bg-red">&gt;</span></a></li>
                                <li><a href="{{ route("family.analysis.trainingcount", ['child_id' => $child->id]) }}">干预次数 <span class="pull-right badge bg-green">&gt;</span></a></li>
                                <li><a href="#">其他 <span class="pull-right badge bg-aqua">&gt;</span></a></li>--}}
                            </ul>
                        </div>
                    </div>
                </div>
            @endforeach
        @endif

    </div>
@stop
